#ifndef IMAGE
#define IMAGE



#include <ddraw.h>    // directX includes


class Image
{
private:
	BITMAPFILEHEADER bitmapfileheader;  // this contains the bitmapfile header
	BITMAPINFOHEADER bitmapinfoheader;  // this is all the info
	UCHAR            *buffer;           // this is a pointer to the data

public:
	//comstructor
	Image(){};

	//destructor
	~Image(){};

	//loada a bitmap from a file
	void LoadImage(char *filename);

	void DeleteImage();

	//get Image buffer pointer
	UCHAR * GetPointer();

	//get Image width
	int GetbiWidth();

	//get Image Height
	int GetbiHeight();

	//flip the bit map
	int Flip_Bitmap(UCHAR *image, int bytes_per_line, int height);



};

// this builds a 32 bit color value in A.8.8.8 format (8-bit alpha mode)
#define _RGB32BIT(a,r,g,b) ((b) + ((g) << 8) + ((r) << 16) + ((a) << 24))

// bitmap defines
#define BITMAP_ID            0x4D42 // universal id for a bitmap

#endif